PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


Window Class Constants

The WindowClass constants categorize windows into groups of like types. The grouping of windows facilitates the appropriate display (that is, both the look and the front-to-back ordering) and tracking of windows.

You can define a window's class using the function CreateNewWindow and obtain a window's class using the function GetWindowClass . However, a window's class cannot be altered once the window has been created.

Note that the ordering of the constants in the WindowClass enumeration reflects the window classes' relative front-to-back display order.

enum {
    kAlertWindowClass           = 1L,
    kMovableAlertWindowClass    = 2L,
    kModalWindowClass           = 3L,
    kMovableModalWindowClass    = 4L,
    kFloatingWindowClass        = 5L,
    kDocumentWindowClass        = 6L
};
typedef UInt32 WindowClass;

Constant descriptions

kAlertWindowClass
Identifies an alert box window.
kMovableAlertWindowClass
Identifies a movable alert box window.
kModalWindowClass
Identifies a modal dialog box window.
kMovableModalWindowClass
Identifies a movable modal dialog box window.
kFloatingWindowClass
Identifies a window that floats above all document windows. If your application assigns this constant to a window and calls the function InitFloatingWindows , the Window Manager ensures that the window has the proper floating behavior. Supported with Mac OS 8.6 and later.
kDocumentWindowClass
Identifies a document window or modeless dialog box window. The Window Manager assigns this class to pre-Mac OS 8.5 Window Manager windows.

© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)